LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

AE_CPP_PATH := ../../../../AECoreLib/src
LOCAL_MODULE := aecore
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../AECoreLib/include
LOCAL_STATIC_LIBRARIES := cpufeatures

LOCAL_CFLAGS := -DANDROID_NDK -DAE_STATICLIB -DAEDEBUG -DAE_USEMEMORYMANAGER -DUSE_GLES_1 -mfpu=neon

LOCAL_SRC_FILES := \
	$(AE_CPP_PATH)/core/algorithm/AEQuickSort.cpp \
	$(AE_CPP_PATH)/core/containers/AEArrayUtil.cpp \
	$(AE_CPP_PATH)/core/containers/AEBaseMap.cpp \
	$(AE_CPP_PATH)/core/math/AEMathEnums.cpp \
	$(AE_CPP_PATH)/core/threads/posix/AECriticalSection_posix.cpp \
	$(AE_CPP_PATH)/core/threads/posix/AEThread_posix.cpp \
	$(AE_CPP_PATH)/core/threads/posix/AESemaphore_posix.cpp \
	$(AE_CPP_PATH)/core/threads/AEScopedLock.cpp \
	$(AE_CPP_PATH)/core/memory/AEFreeListAllocator.cpp \
	$(AE_CPP_PATH)/core/memory/AEStackAllocator.cpp \
	$(AE_CPP_PATH)/core/memory/AEContainersAllocator.cpp \
	$(AE_CPP_PATH)/core/memory/AEMallocAllocator.cpp \
	$(AE_CPP_PATH)/core/memory/AEMemoryAllocator.cpp \
	$(AE_CPP_PATH)/core/memory/AEMemoryManager.cpp \
	$(AE_CPP_PATH)/core/memory/AEMiniAllocator.cpp \
	$(AE_CPP_PATH)/core/memory/AEMemoryConfig.cpp \
	$(AE_CPP_PATH)/core/system/io/filesystems/AEDefaultFileSystemFactory.cpp \
	$(AE_CPP_PATH)/core/system/io/filesystems/AEDiskFileSystem.cpp \
	$(AE_CPP_PATH)/core/system/io/streams/AEDiskFileInStream.cpp \
	$(AE_CPP_PATH)/core/system/io/streams/AEDiskFileOutStream.cpp \
	$(AE_CPP_PATH)/core/system/io/AEFileInStreamI.cpp \
	$(AE_CPP_PATH)/core/system/io/AEFileOutStreamI.cpp \
	$(AE_CPP_PATH)/core/system/platform/android/AEAndroidProcessor.cpp \
	$(AE_CPP_PATH)/debug/AEDebug.cpp
	
#LOCAL_LDLIBS    := -llog -landroid -lEGL -lGLESv1_CM -ldl -lz
include $(BUILD_STATIC_LIBRARY)

$(call import-module,android/cpufeatures)
